-
Notifications
You must be signed in to change notification settings - Fork 424
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow skipping maintenance tasks for list command #1163
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Concerning the test, probably really collect the times after running the CLI, and compare the durations.
I did this manually: Do you have a suggestion on how to automate this with a test? My only suggestion would be to modify |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs merge conflicts fixed and rebased.
Head branch was pushed to by a user without write access
Done |
docs/changelog.md
Summary of changes
Add a
--skip-maintenance
flag to the list command. This sets a new state on the_SharedLibs
class, that is used to skip the shared libs upgrade step by settingneeds_upgrade
to False. This change allows the user to skip the functionality that reaches out topip
, which makes executing the command a lot faster when offline.resolves #1081
Test plan
Introduced a new test case
test_skip_maintenance
. It first adds some packages to introduce shared libs. It then verifies that a normallist
command sets the expected state on theshared_libs
object. Then it verifies that runninglist
with--skip-maintenance
results in state on theshared_libs
object that indicates that no upgrade was performed.Tested by running
nox -s tests-3.12